package cn.edu.scau.cmi.xiefuan.client;

import cn.edu.scau.cmi.xiefuan.domain.BodyInjury;
import cn.edu.scau.cmi.xiefuan.factory.BodyInjuryFactory;
import cn.edu.scau.cmi.xiefuan.factory.InsuranceFactory;

public class FactoryClient {
	
	public static void main(String[] args) {
		
		InsuranceFactory bodyInjuryInsuranceFactory = new BodyInjuryFactory();
		
		BodyInjury bodyInjury = (BodyInjury) bodyInjuryInsuranceFactory.createInsurance();
		
		bodyInjury.describe();
		
	}

}
